package cn.aicnn.chatssespringboot.service;

import cn.aicnn.chatssespringboot.common.CommonResponse;
import cn.aicnn.chatssespringboot.dto.Dialog;
import cn.aicnn.chatssespringboot.vo.DialogVO;

import java.util.List;

public interface ChatService {
    int insertChat(String question, String userId);
    CommonResponse<Object> changeTitle(int chatId, String name);
    CommonResponse<Object> deleteChat(int chatid);
    CommonResponse<List<Dialog>> getDialog(int chatid);
    CommonResponse<List<DialogVO>> getChatList(String username);
}
